package com.example.demo.service;

import com.example.demo.entity.*;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface FoodService {
    List<FoodTypeInfo> findFoodTypeInfo();

    List<FoodAreaInfo> findFoodAreaInfo();

    List<FoodInfo> findFoodInfo();

    List<FoodPointRank> findFoodPointRank();

    List<FoodPopularityRank> findFoodPopularityRank();

    PageInfo<FoodInfo> selectFoodPage(Integer pageNum, Integer pageSize);

    FoodInfo findFoodInfoByname(String name);

    void insertFood(FoodInfo foodInfo);

    FoodInfo findFoodById(int id);

    void updateFood(FoodInfo foodInfo);

    void updateFoodEX(FoodInfo foodInfo);

    void deleteFood(int id);
}
